import QtQuick 1.1

Item{
    id: rootItem;
    property alias text: label.text;
    property alias color: rect.color;
    signal clicked;
    Rectangle{
        id: rect
        anchors.fill: parent;
        radius: 4;
        Text{
            anchors.centerIn: parent
            id: label;
        }
    }

    MouseArea{
        id: mouserArea;
        onClicked: rootItem.clicked();
        anchors.fill: rect;
    }
}
